﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Workflow.Flow
{
    //基本设置项
    public sealed class BasicSetItem
    {
        private BasicSetItem() { }
        /// <summary>
        /// 最多能输入的字符数
        /// </summary>
        public const string MaxLength = "MaxLength";
        /// <summary>
        /// 控件的提示信息
        /// </summary>
        public const string Prompt = "Prompt";
        /// <summary>
        /// 默认值
        /// </summary>
        public const string DefaultValue = "DefaultValue";
        /// <summary>
        /// 单击事件
        /// </summary>
        public const string OnClick = "OnClick";
        /// <summary>
        /// 正则表达式验证
        /// </summary>
        public const string Regular = "Regular";
        /// <summary>
        /// 正则表达式验证错误的提示
        /// </summary>
        public const string ErrorMessage = "ErrorMessage";
        /// <summary>
        /// 是否是必填项
        /// </summary>
        public const string Require = "Require";

        /// <summary>
        /// 字段的类型
        /// </summary>
        public const string Type = "type";

    }

    public sealed class ElementItem
    {

        private ElementItem() { }
        /// <summary>
        /// 模板的XML根元素
        /// </summary>
        public const string Html = "html";
        /// <summary>
        /// 模板的头元素
        /// </summary>
        public const string Head = "head";
        /// <summary>
        /// 模板的内容元素
        /// </summary>
        public const string Body = "body";
        /// <summary>
        /// 模板的数据字段
        /// </summary>
        public const string DataFields = "datafields";

       
    }
}
